<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学生信息</title>
<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
<script type="text/javascript">
	function check() {
		var titleExsist = $('#titleExsist').val();

		if (titleExsist == 1) {
			return false;
		}
		var title = $("#title").val();

		var content = $("#content").val();

		var type = $("#type").val();

		if (title == '') {
			alert("标题不能为空");
			return false;
		}
		if (content == '') {
			alert("内容不能为空");
			return false;
		}
		if (type == '') {
			alert("类别不能为空");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
	<form action="updateServlet?sid=${ requestScope.stu.sid}"
		onsubmit="return check()" method="post">
		<div>
			<table border="1" style="background-color: rgb(219, 241, 212);">
				<tr>
					<th colspan="2" align="middle">学员信息</th>
				</tr>
				<tr>
					<th>学员姓名</th>
					<td><input type="text" name="sname" id="mname"
						value="${requestScope.stu.sname}"></td>
				</tr>
				<tr>
					<th>学员性别</th>
					<td><input type="text" name="sgender" value="男"
						value="${requestScope.stu.sgender}"></td>
				</tr>
				<tr>
					<th>学员年龄</th>
					<td><input type="text" name="sage" id="age"
						value="${requestScope.stu.sage}"></td>
				</tr>
				<tr>
					<th>家庭住址</th>
					<td><input type="text" name="saddress" id="address"
						value="${requestScope.stu.saddress}"></td>
				</tr>
				<tr>
					<th>Email</th>
					<td><input type="text" name="semail" name="id"
						value="${requestScope.stu.semail}"></td>
				</tr>
				<tr>
					<th colspan="2" align="middle"><input type="submit" value="修改"
						style="margin-right: 10px"></th>
				</tr>

			</table>
	</form>
	<input type="submit" value="返回" onclick="javascript:history.back(-1);">
	</div>
</body>
</html>